package com.swt.testdemo.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


/**
 * 角色表
 *
 * @author Bleeth
 * @version 1.0
 * @date 2020-02-06 16:12
 */
@Data
@TableName("sys_role")
public class SysRoleEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    private Integer roleId;

    private String roleType;

    private String roleName;

    private String roleRemark;


    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;




    /**
     * 管理员
     */
    public static final String ADMIN_TYPE = "ADMIN";

    /**
     * 普通用户
     */
    public static final String USER_TYPE = "USER";


}
